package com.lagou.edu.factory;

import java.util.HashMap;
import java.util.Map;

public class BeanDefinition {
    private Class<?> beanClass;
    private Map<String, Object> rawAttributes = new HashMap<String, Object>();
    private Map<String, Object> refAttributes = new HashMap<String, Object>();

    public BeanDefinition(Class<?> beanClass) {
        this.beanClass = beanClass;
    }

    public void setRawAttribute(String name, Object value) {
        rawAttributes.put(name, value);
    }

    public void setRefAttribute(String name, Object value) {
        refAttributes.put(name, value);
    }

    public Map getRawAttributes() {
        return rawAttributes;
    }

    public void setRawAttributes(Map rawAttributes) {
        this.rawAttributes = rawAttributes;
    }

    public Map getRefAttributes() {
        return refAttributes;
    }

    public void setRefAttributes(Map refAttributes) {
        this.refAttributes = refAttributes;
    }

    public Class<?> getBeanClass() {
        return beanClass;
    }
}
